/*
 * @Author: 2112778581 2112778581@qq.com
 * @Date: 2023-10-20 09:16:44
 * @LastEditors: 2112778581 2112778581@qq.com
 * @LastEditTime: 2023-10-23 14:09:31
 * @FilePath: \cra-front\src\views\customer\AttemptCustom\useHooksTable.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { ref, reactive } from 'vue'

export default function () {
  const tableColumns = [
    {
      label: 'IP地址',
      prop: 'ip'
    },
    {
      label: '城市',
      prop: 'cityName'
    },
    {
      label: '电话',
      prop: 'telephone'
    },
    {
      label: '邮箱',
      prop: 'email'
    },
    {
      label: '用户名',
      prop: 'customerName'
    },
    {
      label: '单位',
      prop: 'corporation'
    },
    // {
    //   label: '是否已联系',
    //   prop: 'contacted',
    //   slotable: true
    // },
    // {
    //   label: '是否为高质量用户',
    //   prop: 'highQuality',
    //   slotable:true
    // },
    // {
    //   label: '是否已购买产品',
    //   prop: 'buyed',
    //   slotable: true
    // },
    // {
    //   label: '交易金额',
    //   prop: 'buyedAmount',
    // },
    {
      label: '创建时间',
      prop: 'createdAt',
      time: true
    },
    {
      label: '更新时间',
      prop: 'updateAt',
      time: true
    }
  ]
  const tableData = ref()
  const tableOptions = {
    showOption: false
  }
  return {
    tableColumns, tableData, tableOptions
  }
}
